From: Felix Fietkau Date: Mon, 1 Sep 2008 12:09:11 +0000 (+0000) Subject: allow dund to grab ppp options gathered from the network scripts X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=17853fc1f7949e8f5af237fdb80ffca6544fc182;p=openwrt%2Fsvn-archive%2Fpackages.git allow dund to grab ppp options gathered from the network scripts SVN-Revision: 12457 --- diff --git a/utils/bluez-utils/files/bluez-utils.init b/utils/bluez-utils/files/bluez-utils.init index 43780f5e8..afd2294e7 100644 --- a/utils/bluez-utils/files/bluez-utils.init +++ b/utils/bluez-utils/files/bluez-utils.init @@ -61,6 +61,12 @@ dund_config() { append_bool "$cfg" cache "--cache" append_string "$cfg" pppdopts "" + config_get ifn "$cfg" interface + if [ -n "$ifn" ]; then + config_get unit "$ifn" unit + [ -z "$unit" ] || append args "unit $unit ipparam $ifn linkname $ifn" + fi + config_get_bool enabled "$cfg" "enabled" '1' [ "$enabled" -gt 0 ] && /usr/bin/dund $args }